package com.libs.sys.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.libs.sys.model.Userseat;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 * InnoDB free: 10240 kB 服务类
 * </p>
 *
 * @author SR.Y
 * @since 2021-08-11
 */
@Component
public interface UserseatService extends IService<Userseat> {

    boolean add(Userseat userseat);

    boolean update(Userseat userseat);

    boolean delete(List<Integer> idList);

    Userseat getOneById(Integer id);

    Page<Userseat> list(Integer pageNum, Integer pageSize);

    Page<Userseat> list(Userseat userseat, Integer pageNum, Integer pageSize);

    boolean isHave(Userseat userseat);

    boolean isHaveSeat(Userseat userseat);

    Userseat login(String uid, String pwd);

}
